//
//  main.cpp
//  Day05
//
//  Created by huangj on 2018/1/13.
//  Copyright © 2018年 huangj. All rights reserved.
//

#include <iostream>

using namespace std;




//goto

void  gotoOpration(){
jumpToPoint:
    int num1 =0 ,num = 2;
    cout << "enter to integer " <<endl;
    cin >> num1;
    cin >> num;
    cout << num1 << "X" << num1 <<"= " << num1 * num1 <<  endl;
    cout << num << "X" << num <<"= " << num * num <<  endl;
    cout << " do you wish to perform another opration (y/n)?" << endl;
    char repeat = 'y';
    cin >> repeat;
    if (repeat == 'y') {
        goto jumpToPoint;
    }
    cout << "goto "<< endl ;
};

// dowhile

void dowhileOpration(){
//   const 
}

int main(int argc, const char * argv[]) {
    // insert code here...
    gotoOpration();
    dowhileOpration();
    return 0;
}
